Skip to content

feat(config): Add supervisor programs dependency validation#275

Merged
hubertdeng123 merged 15 commits intomainfrom
hubertdeng123/supervisor-programs-dependency-validation
May 21, 2025
Merged

feat(config): Add supervisor programs dependency validation#275
hubertdeng123 merged 15 commits intomainfrom
hubertdeng123/supervisor-programs-dependency-validation

Conversation

@hubertdeng123
Copy link
Copy Markdown
Member

This adds safeguards to ensure that non-remote dependencies must have a docker compose service or supervisor program

part of https://linear.app/getsentry/issue/DI-762/config-validation-for-dependencies

@hubertdeng123 hubertdeng123 requested a review from IanWoodard May 13, 2025 19:10
else DependencyType.COMPOSE,
dependency_type=(
DependencyType.SERVICE
if _has_remote_config(dependency.remote)
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a pretty huge change, but seems safe to do given that the type is determined during the validation of config now

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To start out, if there are remote dependencies are in modes that include supervisor programs, they should be completely disabled. We don't want to support those workflows since a lot of the time it involves ensuring the venv is set up properly and the right directory is cd'd into

@codecov
Copy link
Copy Markdown

codecov bot commented May 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.93%. Comparing base (13b0dde) to head (e768dc0).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #275      +/-   ##
==========================================
+ Coverage   94.88%   94.93%   +0.05%     
==========================================
  Files          27       27              
  Lines        2249     2272      +23     
==========================================
+ Hits         2134     2157      +23     
  Misses        115      115              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Base automatically changed from hubertdeng123/docker-compose-container-dependency-validation to main May 21, 2025 16:31
@hubertdeng123 hubertdeng123 merged commit 5e6c5eb into main May 21, 2025
15 checks passed
@hubertdeng123 hubertdeng123 deleted the hubertdeng123/supervisor-programs-dependency-validation branch May 21, 2025 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants